liwe.form.instance.prototype.fileupload = function ( vars )
{
	if ( ! this._fileupload )
		this._fileupload = new WWL.fileupload ( 'fileupload' );

	var up = this._fileupload;

	this.events [ 'submit' ] = function ( form_fields, action, cback )
	{
		up.cbacks [ 'load' ] = cback;
		console.debug ( "CUSTOM FILEUPLOAD SUBMIT: %s", action );

		form_fields.iterate ( function ( v, k )
		{
			if ( k ) up.params [ k ] = v;
		} );
		up.url = action;
		up.post ();


	}
};
